//package com.rgs.sourcecode.listen;
//
//import org.springframework.boot.ConfigurableBootstrapContext;
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.SpringApplicationRunListener;
//import org.springframework.context.ConfigurableApplicationContext;
//import org.springframework.core.env.ConfigurableEnvironment;
//
//import java.time.Duration;
//
///**
// * @author RenGaoshuai
// * @date 2024/7/4 9:41
// * @description
// */
//public class MySpringBootStartLogPrentRunListen implements SpringApplicationRunListener {
//
//    /**
//     * Spring Boot 要求自定义的 SpringApplicationRunListener 实现类必须具有以下构造方法签名
//     */
//    public MySpringBootStartLogPrentRunListen(SpringApplication application, String[] args) {
//    }
//
//    @Override
//    public void starting(ConfigurableBootstrapContext bootstrapContext) {
//        System.out.println("MySpringBootStartLogPrentRunListen starting method------------------------");
//    }
//
//    @Override
//    public void environmentPrepared(ConfigurableBootstrapContext bootstrapContext, ConfigurableEnvironment environment) {
//        System.out.println("MySpringBootStartLogPrentRunListen environmentPrepared method------------------------");
//    }
//
//    @Override
//    public void contextPrepared(ConfigurableApplicationContext context) {
//        System.out.println("MySpringBootStartLogPrentRunListen contextPrepared method------------------------");
//    }
//
//    @Override
//    public void contextLoaded(ConfigurableApplicationContext context) {
//        System.out.println("MySpringBootStartLogPrentRunListen contextLoaded method------------------------");
//    }
//
//    @Override
//    public void started(ConfigurableApplicationContext context, Duration timeTaken) {
//        System.out.println("MySpringBootStartLogPrentRunListen started method------------------------");
//    }
//
//    @Override
//    public void ready(ConfigurableApplicationContext context, Duration timeTaken) {
//        System.out.println("MySpringBootStartLogPrentRunListen ready method------------------------");
//    }
//
//    @Override
//    public void failed(ConfigurableApplicationContext context, Throwable exception) {
//        System.out.println("MySpringBootStartLogPrentRunListen failed method------------------------");
//    }
//
//}
